package com.lechuang.member.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lechuang.common.model.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 会员数据统计表
 * @TableName member_summary
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value ="member_summary")
@Data
@Accessors(chain = true)
public class MemberSummary extends BaseEntity implements Serializable {
    /**
     * 会员id
     */
    private Long memberId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 周购奖
     */
    private BigDecimal weekBuyPrize;

    /**
     * 自购报单区单数
     */
    private Integer selfAreaBuyNum;

    /**
     *  代理奖
     */
    private BigDecimal agentPrize;

    /**
     * 分享奖
     */
    private BigDecimal sharePrize;

    /**
     * 自购奖
     */
    private BigDecimal selfBuyPrize;

    /**
     * 服务奖
     */
    private BigDecimal servicePrize;

    /**
     * 管理奖
     */
    private BigDecimal managePrize;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}